
(function () {
    new SimSwiper("#swiper-demo", {
        autoplay: 5000,
        duration: 300,
        easing: 'ease',
        lazy:{
            attr:"_src",
        },
        button: {
            prev: "#prev", // 前进后退按钮
            next: "#next"
        },
        pagination: {
            el: '.pagination',
            click: true // 是否可以点击
        },
        // 轮播图数据
        data: [{
            index: 0,
            href: '#',
            src: 'https://img.alicdn.com/imgextra/i3/6000000004329/O1CN01kTgtWW1hqjHRI3sUG_!!6000000004329-0-octopus.jpg'
        }, {
            index: 1,
            href: '#',
            src: 'https://img.alicdn.com/imgextra/i4/6000000002314/O1CN018N6q9F1SxrDAhK88l_!!6000000002314-0-octopus.jpg'
        },{
            index:2,
            href:"#",
            src:"https://gtms02.alicdn.com/tps/i2/TB10vPXKpXXXXacXXXXvKyzTVXX-520-280.jpg"
        },{
            index:3,
            href:"#",
            src:"https://gtms01.alicdn.com/tps/i1/TB1r4h8JXXXXXXoXXXXvKyzTVXX-520-280.jpg"
        },{
            index:4,
            href:"#",
            src:"https://gtms03.alicdn.com/tps/i3/TB1gXd1JXXXXXapXpXXvKyzTVXX-520-280.jpg"
        }]
    });
})()
